<%--
  Created by IntelliJ IDEA.
  User: xdd
  Date: 2022/7/19
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
</head>
<body>
    <form name="form1" method="post" action="control.jsp">
        用户名:<input type="text" name="userName">
        密码:<input type="password" name="pwd">
        <input type="submit" value="登录">
    </form>
    <%--统计访问量--%>
    <div style="float: right;padding:22px;">
        <%
            Integer count = (Integer) application.getAttribute("count");
            if(count == null) {
                count = 0;
            }
            count++;

            application.setAttribute("count",count);
        %>
        <%
            Integer i = (Integer) application.getAttribute("count");
            out.print("统计访问量：目前有"+i+"个人访问过本网站");
        %>
    </div>

</body>
</html>
